package com.tarena.lbs.coupon.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
@TableName("coupon")
public class CouponPO implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("coupon_name")
    private String couponName;
    @TableField("coupon_type")
    private Integer couponType;
    @TableField("discount_value")
    private BigDecimal discountValue;
    @TableField("max_discount_amount")
    private BigDecimal maxDiscountAmount;
    @TableField("applicable")
    private String applicable;
    @TableField("usage_limit")
    private Integer usageLimit;
    @TableField("max_usage_limit")
    private Integer maxUsageLimit;
    @TableField("start_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startDate;
    @TableField("end_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDate;
    @TableField("status")
    private Integer status;
    @TableField("describes")
    private String describes;
    @TableField("business_id")
    private Integer businessId;
    @TableField("create_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;
    @TableField("update_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateAt;
    @TableField("usage_num")
    private Integer usageNum;
    @TableField("enable_status")
    private Integer enableStatus;
    @TableField("exclusion_type")
    private Integer exclusionType;
    @TableField("order_amount")
    private BigDecimal orderAmount;
}